package org.example.mine.service.impl;

import org.example.mine.mapper.MyWalletMapper;
import org.example.mine.service.MyWalletService;
import org.example.model.domain.express.ExpressDetial;
import org.example.model.domain.express.ExpressList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class MyWalletServiceImpl implements MyWalletService {
    @Autowired
    MyWalletMapper mapper;


    @Override
    public ExpressList getUserbyId(Integer id) {
        return mapper.getUserbyId(id);
    }

    @Override
    public Integer withhold(Long registerIp, BigDecimal balance) {
        return mapper.withhold(registerIp,balance);
    }

    @Override
    public void updatestate(Integer id, String i) {
        mapper.updatestate(id,i);
    }

    @Override
    public ExpressDetial getuserdetail(String id) {
        return mapper.getuserdetail(id);
    }
}
